package com.zjeav.lingjiao.ui.book;

import com.zjeav.lingjiao.base.baseBean.BaseView;
import com.zjeav.lingjiao.base.baseBean.Result;
import com.zjeav.lingjiao.base.baseBean.UserBuyReCord;
import com.zjeav.lingjiao.base.response.BannerResponse;
import com.zjeav.lingjiao.base.response.BookDetailResponse;
import com.zjeav.lingjiao.base.response.OrderQueryResponse;
import com.zjeav.lingjiao.base.response.OrderSubcribeResponse;

import java.util.ArrayList;

public interface BookDetailContract {
    interface View extends BaseView {
        void ShowBookDetail(BookDetailResponse response);
        void showBuyHistory(ArrayList<UserBuyReCord> list);
        void ShowFail(Throwable throwable);
    }
    interface PayView extends BaseView{
        void QueryPay(OrderQueryResponse queryResponse);
        void ShowFail(Throwable throwable);
    }
    interface ShopView extends BaseView{
        void ShowShop(OrderSubcribeResponse response);
        void ShowError(Throwable throwable,String message);
    }
    interface BookMetaCollectView extends BaseView{
        void CollectSuccess(Result result);
        void RemoveCollect(Result result);
        void ShowError(Throwable throwable,String message);
    }
    interface BookCollectView extends BaseView{
        void BookCollectSuccess(Result result);
        void RemoveBookCollect(Result result);
        void FreePay(Result result);
        void ShowError(Throwable throwable,String message);
    }
}
